AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')


function ENT:Initialize()
	self.Entity:SetModel( "models/props_c17/oildrum001_explosive.mdl" )  	
	self.Entity:PhysicsInit( SOLID_VPHYSICS )        	
	self.Entity:SetMoveType( MOVETYPE_VPHYSICS )    	
	self.Entity:SetSolid( SOLID_VPHYSICS )                         
	local phys = self.Entity:GetPhysicsObject()  	
	if (phys:IsValid()) then  		
		phys:Wake()  	
	end  

	end

function ENT:SpawnFunction( ply, tr )
	if ( !tr.Hit ) then return end
	local SpawnPos = tr.HitPos + tr.HitNormal * 36
	local ent = ents.Create( "textdisplay" )
	ent:SetPos( SpawnPos )
	ent:Spawn()
	ent:Activate()
	return ent
end
